home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ 2⁄23⁄90 / 0741-Dragging TVIEWs Arou-Feb90 < prev    next >
Encoding:
Text File  |  1990-02-23  |  1.9 KB  |  47 lines  |  [TEXT/GEOL]

  1. Item forwarded  by  D4682        to CPLUS.DEV$
  2.  
  3. Item    9434362                         22-Feb-90        12:32PST
  4.  
  5. From:   D4682                           Marx, Peter,PRT
  6.  
  7. To:     MACDTS                          Macintosh Developer Tech. Supt.
  8.         MACAPP.TECH$                    MacApp Technical
  9.         GRETSCH                         Gretsch, Greg
  10.  
  11. Sub:    Dragging TVIEWs Around
  12.  
  13. Dear Colleagues and Scholars:
  14.  
  15. How do you drag (yes, drag) a TView around using the mouse. I want to drag a
  16. TPicture around - like a slider - and am having some difficulties. I am using
  17. MacApp 2.0ß9, MPW C++ 3.1, MPW 3.1, and system 6.0.4. The hardware is quick,
  18. but standard.
  19.  
  20. The problem I am having is this:
  21.  
  22. I can drag the TPicture around by implementing a DoMouseDown(), TrackFeedback()
  23. - which does the actual dragging, and TrackConstrain() in the superview to the
  24. TPicture. The superview is a TDialogView within a TWindow. There is a subview
  25. to the TPicture which is a TNumberText.
  26.  
  27. All of this partially works - the TPicture moves (as does its subview) - but
  28. ONLY SO FAR. It will go no further than its ORIGINAL extent. For example, you
  29. can click and drag the TPicture only about 25 pixels; as soon as the mouse
  30. leaves the original VRect extent, it stops dragging. My ::TrackConstrain()
  31. method gets called with a point corresponding to the outer boundary of the
  32. TPicture. This is REGARDLESS of the FACT that the mouse click is being HANDLED
  33. by the SUPERVIEW (and the TPicture is even disabled!)
  34.  
  35. Is this a bug? Is this designed? (Now that it is documented, could it be
  36. considered a feature?) In any case, how in the hell do I get around it? I'd
  37. really like to be able to drag my TView around!
  38.  
  39. Thanks for any help you all can provide. Being a avid reader of the guerilla
  40. wars, I thought I'd turn to MacApp.Tech$ for advice and consolation.
  41.  
  42. Peter Marx
  43. UCLA Dept. of Medicine
  44.  
  45. 213/471-2754
  46.  
  47.